﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using XiMiDal;
using XiMiModel;
using XiMiModelDto;

namespace XiMiBll
{
    public class OrderBll
    {
        private readonly OrderDal _orderDal;
        public OrderBll(OrderDal orderDal)
        {
            _orderDal = orderDal;
        }
        public List<OrderDtoModel> ShowOrder()
        {
           return _orderDal.ShowOrder();
        }
        public int AddOrder(OrderModel orderModel)
        {
            return _orderDal.AddOrder(orderModel);
        }
        public List<OrderDtoModel> Show(int pageindex, int pagesize, out int totalcount)
        {
            return _orderDal.Show(pageindex, pagesize, out totalcount);
        }
        public AddressModel Fan(int id)
        {
            return _orderDal.Fan(id);
        }
        public List<FixDtoModel> Check(int id)
        {
            return _orderDal.Check(id);
        }
        public List<OrderShowModel> ShowOrders()
        {
            return _orderDal.ShowOrders();
        }
    }
}
